package com.zzyl.nursing.controller.member;

import com.zzyl.common.core.domain.AjaxResult;
import com.zzyl.nursing.dto.MemberLoginDto;
import com.zzyl.nursing.service.IMemberLoginService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
public class MemberLoginConreoller {
    private final  IMemberLoginService memberLoginService;

    @PostMapping("/member/user/login")
    public AjaxResult login(@RequestBody MemberLoginDto dto){
        return AjaxResult.success(memberLoginService.login(dto));
    }
}
